package com.baizhi.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration //声明这是一个配置类
@PropertySource("classpath:jdbc.properties")  // 导入properties文件
@ComponentScan({"com.baizhi.mapper","com.baizhi.service"}) //配置包扫描
@Import({MyBatisConfig.class,DataSourceConfig.class}) //整合其他配置文件
@EnableTransactionManagement //开启Spring对声明式事务注解形式的支持
public class SpringConfig {
}
